
ServerFactory = function()
{
}

ServerFactory.prototype.getServer = function()
{
    return new Server();
}

ServerFactory.prototype.getResourceMapView = function()
{
    return new ResourceMapView();
}

ServerFactory._singletonObject = null;
ServerFactory._serverSingletonObject = null;

ServerFactory.getSingleton = function()
{
    return _singletonObject;
}

ServerFactory.setSingleton = function(serverFactory)
{
    _singletonObject = serverFactory;
    return;
}

ServerFactory.getServerSingleton()
{
    return _serverSingletonObject;
}
